import request from "@/utils/request";

// 列表
export function list(params) {
    return request({
        url: "/energy/target/setting/list",
        method: "get",
        params,
    });
}

// 新增 错误码302003
export function add(data) {
    return request({
        url: `/energy/target/setting`,
        method: "post",
        data
    });
}

// 修改 错误码302004
export function edit(data) {
    return request({
        url: `/energy/target/setting`,
        method: "put",
        data
    });
}
// 详情 错误码302005
export function detail(id) {
    return request({
        url: `/energy/target/setting/${id}`,
        method: "get",
    });
}


// 删除 错误码302002
export function deleteTarget(id) {
    return request({
        url: `/energy/target/setting/${id}`,
        method: "delete",
    });
}
